import request from '@/utils/request'
/**@description 查询房源表列表 */
export function listHouse(query) {
  return request({
    url: '/system/house/list',
    method: 'get',
    params: query
  })
}
/**@description 查询房源表详细 */
export function getHouse(id) {
  return request({
    url: '/system/house/' + id,
    method: 'get'
  })
}
/**@description 新增房源表 */
export function addHouse(data) {
  return request({
    url: '/system/house',
    method: 'post',
    data: data
  })
}
/**@description 修改房源表 */
export function updateHouse(data) {
  return request({
    url: '/system/house',
    method: 'put',
    data: data
  })
}
/**@description 删除房源表 */
export function delHouse(id) {
  return request({
    url: '/system/house/' + id,
    method: 'delete'
  })
}
/**@description 购买房源表 */
export function HousePurchase(data) {
  return request({
    url: '/system/house/purchase',
    data: data,
    method: 'POST'
  })
}
